import copy

def use_copy():
    a = [12, 22]
    b = [33, 44]
    c = copy.copy(a)
    print(c)
    a[0] = 50
    print(c)


def use_deepcopy():
    a = [12, 22]
    b = [33, 44]
    c = [a, b]
    d = copy.deepcopy(c)
    # d=c.copy()
    print(f'id(c)={id(c)},id(d)={id(d)}')
    print(f'id(c[0])={id(c[0])},id(d[0])={id(d[0])}')
    print(d)
    a[0] = 50
    print(d)

if __name__ == '__main__':
    print("浅copy：")
    use_copy()
    print("深copy：")
    use_deepcopy()
